
package poolServer;

import java.util.Timer;

import query.report.ReportManager;
import sms.ReceiveThread;
import sms.SmsBuffer;

import control.*;
import dbmanager.DBManager;
import event.EventHandler;

public class PoolServer 
{
	public PoolServer ()
	{
	//	DBManager db = new DBManager(,,,);
	//	db.getConnect();
		
		
		//START CLIENTWATCH	
		Thread clientwatch = new Thread(new ClientWatch());
		clientwatch.setPriority(Thread.MAX_PRIORITY);
		clientwatch.start();
		/*
		
		EventHandler eHandler = new EventHandler();
		eHandler.setPriority(7);
		eHandler.start();
		
		ReceiveThread  receiver =new ReceiveThread();
		Timer receivertimer =new Timer();
		receivertimer.schedule(receiver,2000);
		
		//START MOBILE CLIENT
		Thread mobile=  new Thread(new MobileManager());
		mobile.setPriority(Thread.MAX_PRIORITY);
		mobile.start();
		
		//BUFFER FOR SEND SMS		RUNNING ON SECOND SERVER 192.168.1.102
		SmsBuffer sms = new SmsBuffer();
		sms.start();	
	 	//START REPORTMANAGER		RUNNING ON SECOND SERVER 192.168.1.102	
		ReportManager report =new ReportManager();
		report.setPriority(Thread.MAX_PRIORITY);
		report.start();			
	*/
			
	}
	
	public static void main(String[] args)
	{
		new PoolServer();
	}
}